//
//  StatusCellBottomView.swift
//  我的微博
//
//  Created by ZhangChao on 15/9/8.
//  Copyright © 2015年 ZhangChao. All rights reserved.
//

import UIKit

class StatusCellBottomView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
        
//        setupUI()
    }
    
    private func setupUI(){
        
        backgroundColor = UIColor(white: 0.95, alpha: 1.0)
        // 添加按钮
        addSubview(forwordButton)
        addSubview(commentButton)
        addSubview(likeButton)
        
        // 自动布局
        self.ff_HorizontalTile([forwordButton,commentButton,likeButton], insets: UIEdgeInsetsZero)
        
    }
    
    
    // 懒加载按钮
    private lazy var forwordButton : UIButton = UIButton(title: " 转发", imageName: "timeline_icon_retweet", fontSize: 12, textColor: UIColor.lightGrayColor())
    
    private lazy var commentButton : UIButton = UIButton(title: " 评论", imageName: "timeline_icon_comment", fontSize: 12, textColor: UIColor.lightGrayColor())
    
    private lazy var likeButton : UIButton = UIButton(title: " 赞", imageName: "timeline_icon_unlike", fontSize: 12, textColor: UIColor.lightGrayColor())
}
